To run the R script, which contains the main analysis:

1) Install R (https://www.r-project.org) and RStudio if you don't already have it (https://www.rstudio.com/products/rstudio/download/)
2) Open the script file ("Workfare - Replication Code.R") in RStudio 
3) Ensure all required packages are installed (you should be prompted to install missing packages)
4) Press Ctrl-Shift-S in RStudio to run the script

NB: the script and data file should be in the same folder; after running the script, all figures and tables will be in that folder.

---

Note that running the additional analyses in the Stata do file will require access to Stata, which is paid software.
